home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / usr / share / acpi-support / device-funcs < prev    next >
Text File  |  2008-10-14  |  737b  |  14 lines

  1.  
  2. DeviceConfig() {
  3.  
  4.     # Use a cached copy of the DMI data if it is available as we may
  5.     # not be running with privileges necessary to access /dev/mem
  6.     manufacturer=`cat /var/lib/acpi-support/system-manufacturer||dmidecode --string system-manufacturer|sed -e 's/ *$//'`
  7.     model=`cat /var/lib/acpi-support/system-product-name||dmidecode --string system-product-name|sed -e 's/ *$//'`
  8.     version=`cat /var/lib/acpi-support/system-version||dmidecode --string system-version|sed -e 's/ *$//'`
  9.     bios_version=`cat /var/lib/acpi-support/bios-version||dmidecode --string bios-version|sed -e 's/ *$//'`
  10.     
  11.     if [ -f "/usr/share/acpi-support/$manufacturer.config" ]; then
  12.     . "/usr/share/acpi-support/$manufacturer.config";
  13.     fi
  14. }